﻿[예시 상황]
1번 El 룬에 red3(빨강 / 실크 패턴) 빛기둥을 적용한다.

대상 파일
  data/hd/items/misc/rune/el_rune.json

사용할 리소스
  data/hd/env/jg/pf_item_red3_light.json
  data/hd/vfx/jg/colorlight/drop_light_red3.particles
  data/hd/vfx/jg/colorlight/red3.texture
  data/hd/vfx/jg/colorlight/color_light.texture

위 리소스 파일들은 data 폴더 구조를 유지한 채 그대로 넣는다.
실제로 el_rune.json에서 손대는 부분은 2곳이다.


1. dependencies.json에 red3 Prefab을 추가

el_rune.json의 dependencies 안에는 원래 이런 부분이 있다.

"json": [
  {
    "path": "data/hd/items/dropped_items/dropped_items_helms_flip_ne.json"
  }
],

여기에 red3 Prefab 경로를 한 줄 추가한다.

"json": [
  {
    "path": "data/hd/items/dropped_items/dropped_items_helms_flip_ne.json"
  },
  {
    "path": "data/hd/env/jg/pf_item_red3_light.json"
  }
],


2. entities 배열 끝에 red3 Prefab Entity를 추가

기존 entity_model 뒤에 쉼표(,)를 붙이고 아래 Entity를 하나 추가한다.

{
  "type": "Entity",
  "name": "pf_item_red3_light",
  "id": 586091854,
  "components": [
    {
      "type": "TransformDefinitionComponent",
      "name": "prefab_TransformDefinitionComponent",
      "position": { "x": 0.0, "y": 0.0, "z": 0.0 },
      "orientation": { "x": 0.0, "y": 0.0, "z": 0.0, "w": 1.0 },
      "scale": { "x": 0.15, "y": 1.0, "z": 0.15 },
      "inheritOnlyPosition": false
    },
    {
      "type": "PrefabPlacementDefinitionComponent",
      "name": "prefab_PrefabPlacementDefinitionComponent",
      "prefab": "data/hd/env/jg/pf_item_red3_light.json"
    }
  ]
}

이렇게 하면 El 룬 JSON은 red3 Prefab을 불러오고,
red3 Prefab이 다시 drop_light_red3.particles와 red3.texture를 사용한다.

연결 구조
  el_rune.json
    → pf_item_red3_light.json
      → drop_light_red3.particles
        → red3.texture

다른 색상/패턴을 쓰고 싶을 때는 같은 위치의 "red3"만 원하는 variant 이름으로 바꾸면 된다.
